libacpi: don't build x86-only AML for ARM64 mk_dsdt
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 22 Dec 2016 09:56:34 +0000 (10:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Dec 2016 09:56:34 +0000 (10:56 +0100)
commit4a348565b1dcd3980168c176572cee925fcbe6d2
treeea5517c5f8f5995b927040eaa53789b8bbabedb2
parentfb4c92ffa661516e41d24974d3d0a2a3608caf68
libacpi: don't build x86-only AML for ARM64 mk_dsdt

Commit d6ac8e22c7c5 ("acpi/x86: define ACPI IO registers for
PVH guests") broke ARM64 build of mk_dsdt.c due to introduction
of XEN_ACPI_CPU_MAP[_LEN] macros that are needed only for x86
guests.

We could fix the build by dealing specifically with those macros
but since post-MADT code is not executed on ARM64 anyway we can
compile it for x86 only.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Tested-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
tools/libacpi/mk_dsdt.c